/**
 * 更新应用
 */
import { Response, Request, DependencyContainer } from '@sker/core'
import z from 'zod'
export default (injector: DependencyContainer) => {

    const res = injector.resolve(Response)
    const req = injector.resolve(Request)
    
    const schema = z.object({
        name: z.string()
    })
    const body = schema.parse(req.body);
    
    res.type('json').json({
        success: true,
        data: body
    })
    
}